﻿var BackgroundChanger = (function () {
    function BackgroundChanger(element) {
        this.element = element;
    }
    BackgroundChanger.prototype.BackgroundChange = function () {
        var CurrentHour = new Date().getHours();

        switch (CurrentHour) {
            case 18:
            case 19:
            case 20:
            case 21:
            case 22:
            case 23:
            case 0:
            case 1:
            case 2:
            case 3:
                this.element.style.backgroundColor = "#333333";
                break;
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
                this.element.style.backgroundColor = "#0066CC";
                break;
            case 9:
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
            case 17:
                this.element.style.backgroundColor = "#FFFF66";
                break;
        }
    };
    return BackgroundChanger;
})();

window.onload = function () {
    var bc = new BackgroundChanger(document.getElementById("body"));
    bc.BackgroundChange();
};
//# sourceMappingURL=BackgroundChanger.js.map
